[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make confmodules abort? (was Re: Bug#214935: cdebconf-newt-udeb: OK button misleading...)



Denis Barbier wrote:
> Of course (b) must be implemented.  Config scripts can register their
> PID, e.g. by adding
>    db_set debconf/confmodule_pid $$
> in src/client/confmodule, which will automatically set
> debconf/confmodule_pid to the right PID when config scripts are shell
> scripts.  Similarly the debconfclient_new function in src/debconfclient.c
> can also set debconf/confmodule_pid to the current PID.
> IMO having a single value is enough, there is no need to keep PID on
> a stack.  Comments?

If you're going to go that route, perhaps it would be cleaner to put the
PID in the protocol:

PROGRESS START 0 10 $PID foo/bar

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: