blob: 2f32f9e9e48982669fa28a07926bdcc080b2f20e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-aa,v 1.2 2011/01/29 09:09:36 obache Exp $
--- src/GnomeSubtitles/Execution/Executable.cs.orig 2010-09-09 20:49:03.000000000 +0000
+++ src/GnomeSubtitles/Execution/Executable.cs
@@ -41,6 +41,9 @@ public class Executable {
Console.Error.WriteLine("Error setting process name with prctl: " + Mono.Unix.Native.Stdlib.GetLastError());
}
}
+ catch (EntryPointNotFoundException) {
+ return false; // Silent fallback to setproctitle
+ }
catch (Exception e) {
Console.Error.WriteLine("Setting the process name using prctl has thrown an exception:");
Console.Error.WriteLine(e);
|