ar- / incron

cron-like daemon which handles filesystem events
Other
229 stars 51 forks source link

usertable: change system to execl call #60

Open maquefel opened 5 years ago

maquefel commented 5 years ago

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.