by thorwafspp · 11y ago · 0 comments
> You need to deal with file handles / etc, but that can be done too.
That's actually the hard part. To get a real image of that process in time, you need to snapshot the full filesystem state, too. Or it could change out from beneath your program. Even more complicated: network state.
I know this kind of stuff is being worked on so VMs/containers/namespaces can be moved around but it seems to be one of those things that gets really complicated when you try to do it transparently for userspace.
How about if it's listening on a TCP port -- what happens if that port is in use by another process when the original one is thawed?
https://twit.tv/shows/floss-weekly/episodes/334
I can't remember exactly where in the podcast they discussed it, but I believe it was just before the part where you could hear brains exploding in the background
(Case in point: you can have a system hibernate, have a supposedly locked file change, and have the system resume.)