5 ms·
Why can't it look at the exitcode? If you exited with success why does matter how long it runs? The faster it is done with running processes the faster it can g
by edwintorok 12y ago
Why can't it look at the exitcode? If you exited with success why does matter how long it runs? The faster it is done with running processes the faster it can go back to sleep.
- acdha 12y agoThink about it from the perspective of the operating system vendor: J. Random Codeslinger never checks return codes and always exits 0 so launchd ends up running the thing semi-constantly until syslog fills up the disk with "Usage: …" messages. If you have a professional sysadmin monitoring things, this gets fixed. If you're the average Mac user, you tell all of your friends that the last OS X release sucks and made your Mac slow and eventually go to the Apple store when your hard drive fills up.
- pyre 12y agoWhat if the system process that you want to run periodically takes less than 60 seconds to run? Why should I have to wrap it in a shell script that ends with 'sleep 60' just to accommodate Apple?