Re: a question: handling tasks

From: Alan Cox
Date: Tue Dec 13 2005 - 11:01:27 EST


On Maw, 2005-12-13 at 16:29 +0100, KERNEL_C@xxxxxxxxxxxxxx wrote:
> The thing is that, in case of the user
> trying to execute another instance of the appl. the already running one
> could catch the first argument used to call the second instance and
> pass it through a function.

Not really a kernel question. Various daemons implement something
similar using simple file locks and then sockets to pass messages
between instances of a program.

It's not the usual mentality of Linux/Unix programs but you'll find
examples that do it to look at - one is evolution, another is
mozilla/firefox as shipped by at least Fedora (not all vendors use the
single instance/multiple windows code). Various other gnome apps such as
gnome terminal support this way of working too and Gnome implements a
set of factory objects and activation system for this purpose
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/