Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@maquefel
Copy link

The man page for system states clear - execl is called AFTER fork,
usertable for root is calling system after fork so we have fork, fork
which is clearly not is expected couse the forked proccess doesn't exit.

This result into many instances of incrond which state is uknown.

Let's just call execl("/bin/sh", "sh", "-c", command, (char *) NULL); as
per manual as we have forked before this call.

The man page for system states clear - execl is called AFTER fork,
usertable for root is calling system after fork so we have fork, fork
which is clearly not is expected couse the forked proccess doesn't exit.

This result into many instances of incrond which state is uknown.

Let's just call execl("/bin/sh", "sh", "-c", command, (char *) NULL); as
per manual as we have forked before this call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant