Re: bye with exit status

Liste des GroupesRevenir à cl forth 
Sujet : Re: bye with exit status
De : ruvim.pinka (at) *nospam* gmail.com (Ruvim)
Groupes : comp.lang.forth
Date : 07. Nov 2024, 23:04:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgjdhn$2qsdj$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 2024-11-07 22:50, Anthony Howe wrote:
On 2024-11-07 06:56, Ruvim wrote:
I would like to find a more appropriate name for this word than "bye- status".
 (bye) ( u -- )
 Seems apropos, short, to the point and indicative of an internal word. 
Yes, and because of the latter this name cannot be used for a standard word. Standard words are not internal words, but are part of the public interface.
What about the following options:
   badbye ( n -- never )
     - because it's probably not normal termination
     - if n is 0, then it's false-bad (i.e, good)
   goodbye ( n -- never )
     - ironically when n is not zero
   getout ( n -- never )
     - send control very far from here

Default can be defined to return to the host OS with an exit status `u`, but maybe be replaced in (unhosted) environments to perform some sort of system reset, power cycle, or other implementation defined system reset.
 
`terminate` is a good candidate, but it's unclear what it should terminate — a thread/task, or a process, or the own process, or the own thread.
 TERMINATE could have the same meaning as SIGTERM *:
   SIGTERM (Terminated)
           This signal is the default signal sent by kill(1) and represents a
           user or administrator request that a program shut down [normally].
 * Other signals result in abnormal termination.
 
SIGTERM is a good association with processes.
Perhaps, SIGTERM can be send to another process too.
--
Ruvim

Date Sujet#  Auteur
6 Nov 24 * bye with exit status19Ruvim
6 Nov 24 +- Re: bye with exit status1albert
6 Nov 24 `* Re: bye with exit status17Anthony Howe
6 Nov 24  `* Re: bye with exit status16minforth
6 Nov 24   `* Re: bye with exit status15mhx
7 Nov 24    +* Re: bye with exit status10Ruvim
7 Nov 24    i`* Re: bye with exit status9Anthony Howe
7 Nov 24    i +* Re: bye with exit status5Ruvim
8 Nov 24    i i+- Re: bye with exit status1mhx
8 Nov 24    i i`* Re: bye with exit status3Anthony Howe
8 Nov 24    i i `* Re: bye with exit status2Ruvim
8 Nov 24    i i  `- Re: bye with exit status1Anthony Howe
8 Nov 24    i +- Re: bye with exit status1Ron AARON
8 Nov 24    i `* Re: bye with exit status2albert
8 Nov 24    i  `- Re: bye with exit status1minforth
8 Nov 24    `* Re: bye with exit status4Anton Ertl
8 Nov 24     `* Re: bye with exit status3Ruvim
8 Nov 24      `* Re: bye with exit status2Anton Ertl
8 Nov 24       `- Re: bye with exit status1Ruvim

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal