Create a gist now

Instantly share code, notes, and snippets.

#include <unistd.h>
//some-daemon-process.c
int main(void)
{
daemon(1, 1);
while(1)
{
sleep(1);
}
return 0;
}
//ssh some-host.com ./some-daemon-process
//^^^ this doesn't exit ^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment