Loading ...
Sorry, an error occurred while loading the content.
 

Re: [linux] Re: Process Distribution & Migration

Expand Messages
  • ed
    On Mon, 29 Jan 2007 09:54:15 -0800 (PST) ... if it s critical to operate on the pid, always use getpid(). -- Regards, Ed ::
    Message 1 of 9 , Jan 29, 2007
      On Mon, 29 Jan 2007 09:54:15 -0800 (PST)
      Pedro Izecksohn <izecksohn@...> wrote:

      > --- Pedro Izecksohn <izecksohn@...> wrote:
      > > --- imtiaz_raheel <imtiaz_raheel@...> wrote:
      > >
      > > > suppose half of your process has executed and then you put it in
      > > > yuor flash drive and execute it somewhere else.
      > >
      > > May signal.h sigaction be useful to restore process state.
      > >
      > After thinking some minutes more:
      >
      > What is not restorable? Registers and memory pages are restorable.
      > But PID AFAIK is not, as it may be in use by another process.
      >
      > I'm not a kernel hacker, but someone could add a feature to reserve
      > a specific PID to a future exec, that should be exec with the
      > reserved PID when it become available.

      if it's critical to operate on the pid, always use getpid().

      --
      Regards, Ed :: http://www.ednevitable.co.uk
      just another bash person
      Mr. T once won the lottery. The winning numbers were "T-T-T-T-T-T"
    Your message has been successfully submitted and would be delivered to recipients shortly.