I've written a program in C#/Mono that probes a device to determine if it is a modem.
The program works fine from the command line. However, when it is called from
PROGRAM= in a udev rule, the program runs properly until the end, and then fails to terminate. As an additional piece of information, the program does terminate when called from
The program also terminates successfully, even when called from
PROGRAM=, on a different system based on Ubuntu. The system in question here is running Gentoo.
Additionally, a one line "Hello world" application written in C# has the same symptoms as my application.
What could cause the program not to terminate?