mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "KERNEL_C@telefonica.net" <KERNEL_C@telefonica.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: a question: handling tasks
Date: Tue, 13 Dec 2005 16:02:17 +0000	[thread overview]
Message-ID: <1134489737.11732.92.camel@localhost.localdomain> (raw)
In-Reply-To: <9108837.1134487799101.JavaMail.root@ctps7>

On Maw, 2005-12-13 at 16:29 +0100, KERNEL_C@telefonica.net 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

      reply	other threads:[~2005-12-13 16:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13 15:29 KERNEL_C
2005-12-13 16:02 ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1134489737.11732.92.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=KERNEL_C@telefonica.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome