- //sigprocmask (SIG_SETMASK, 0, &blocked);
- if (pthread_sigmask (SIG_SETMASK, 0, &blocked)) {
- cerr << "getting blocked signals failed\n";
- }
-
- /* wait for any of the currently blocked signals.
-
- According to the man page found in linux 2.6 and 2.4, sigwait()
- never returns an error. This is incorrect. Checking the man
- pages for some other *nix systems makes it clear that
- sigwait() can return several error codes, one of which
- is EINTR. This happens if the thread receives a signal
- which is not in the blocked set.
-
- We do not expect that to happen, and if it did we should generally
- exit as planned. However, under 2.6, the ptrace facility used
- by gdb seems to also cause sigwait() to return with EINTR
- but with a signal that sigwait cannot understand. As a result,
- "sig" is set to zero, an impossible signal number.
-
- Handling the EINTR code makes it possible to debug
- ardour on a 2.6 kernel.
+ Glib::ustring exec_path (execpath);
+ Glib::ustring dir_path = Glib::path_get_dirname (exec_path);
+ Glib::ustring path;
+ const char *cstr = getenv ("PATH");