Re: [hackers] [slock] Use argv0 instead of passing "slock:" to die every time || FRIGN

From: FRIGN <>
Date: Mon, 15 Feb 2016 11:30:59 +0100

On Mon, 15 Feb 2016 11:22:08 +0100
Markus Teich <> wrote:

Hey Markus,

> why this `argc--, argv++` shenanigans? I think it's more confusing rather than
> helping.

we came up with this in sbase/ubase as an idiomatic way to set argv0
for tools that don't use arg.h.
We need argv0 here because I moved the prepending of the argv[0] into
die(), and thus we need to store the argv0 in a global variable.



Received on Mon Feb 15 2016 - 11:30:59 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 15 2016 - 11:36:17 CET