On 2005-03-17, Matthieu Moy <[EMAIL PROTECTED]> wrote:
> Tuomo Valkonen <[EMAIL PROTECTED]> writes:
>
>> On 2005-03-16, Matthieu Moy <[EMAIL PROTECTED]> wrote:
>>> If you return nil in this case and the pid in the other case, IIRC,
>>> you can still write in lua
>>
>> libextl doesn't support integers being nil.
>
> This could be done with a libextl export returning both the bool and
> the int and a lua wrapper. Not sure it's worth the effort, though.

Or one could return a string containing the number or NULL as Lua
automatically coerces number-strings to numbers. But it isn't worth
it. I think it would be appropriate to return the value of fork()
and thus -1 on failure.

-- 
Tuomo

Reply via email to