Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usertable: change system to execl call #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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