Geremia
Geremia

Reputation: 5656

sys.stdin.readline() in an inittab

I am using sys.stdin.readline() to to hang the execution of a Python script, to keep it persistent. When I put this script in an inittab and it comes time to log into Linux after rebooting, hitting enter actually makes readline() read the input! Why is this? What is the proper way to keep a Python script daemonized?

Upvotes: 0

Views: 18

Answers (0)

Related Questions