Fix warning
This commit is contained in:
parent
ac72a8f29a
commit
8fb5c53373
|
@ -110,12 +110,12 @@ namespace SparkleShare {
|
||||||
|
|
||||||
|
|
||||||
// Strange magic needed by SetProcessName ()
|
// Strange magic needed by SetProcessName ()
|
||||||
[DllImport ("libc")]
|
// [DllImport ("libc")]
|
||||||
private static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
|
// private static extern int prctl (int option, byte [] arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
|
||||||
|
|
||||||
|
|
||||||
// Sets the Unix process name to 'sparkleshare' instead of 'mono'
|
// Sets the Unix process name to 'sparkleshare' instead of 'mono'
|
||||||
private static void SetProcessName (string name)
|
/* private static void SetProcessName (string name)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if (prctl (15, Encoding.ASCII.GetBytes (name + "\0"), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) != 0)
|
if (prctl (15, Encoding.ASCII.GetBytes (name + "\0"), IntPtr.Zero, IntPtr.Zero, IntPtr.Zero) != 0)
|
||||||
|
@ -125,6 +125,6 @@ namespace SparkleShare {
|
||||||
} catch (EntryPointNotFoundException) {
|
} catch (EntryPointNotFoundException) {
|
||||||
Console.WriteLine ("SetProcessName: Entry point not found");
|
Console.WriteLine ("SetProcessName: Entry point not found");
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue