Saturday, August 4, 2018

Notes on exec( ) system call

Notes on exec( ) system call
  • The new process shared old process’s file descriptor table
  • A printf() used before exec might not work because its buffers were not flushed.
    • Use fflush().
  • exec’ed process too gets access to environ.

Written with StackEdit.

No comments:

Post a Comment