2018-05-22 08:29:59 -07:00
|
|
|
enum Efl.Exe_Signal {
|
2018-02-20 22:44:11 -08:00
|
|
|
[[ ]]
|
|
|
|
int,
|
|
|
|
quit,
|
|
|
|
term,
|
|
|
|
kill,
|
|
|
|
cont,
|
|
|
|
stop,
|
|
|
|
hup,
|
|
|
|
usr1,
|
|
|
|
usr2
|
|
|
|
}
|
|
|
|
|
2018-05-22 08:29:59 -07:00
|
|
|
enum Efl.Exe_Flags {
|
2018-02-20 22:44:11 -08:00
|
|
|
[[ ]]
|
|
|
|
none = 0,
|
|
|
|
group_leader = 1,
|
|
|
|
exit_with_parent = 2,
|
2018-03-06 01:31:48 -08:00
|
|
|
hide_io = 4
|
2018-02-20 22:44:11 -08:00
|
|
|
}
|
|
|
|
|
2019-02-14 17:19:03 -08:00
|
|
|
class @beta Efl.Exe extends Efl.Task implements Efl.Io.Reader, Efl.Io.Writer, Efl.Io.Closer, Efl.Core.Command_Line
|
2018-02-20 22:44:11 -08:00
|
|
|
{
|
|
|
|
[[ ]]
|
|
|
|
methods {
|
|
|
|
signal {
|
|
|
|
params {
|
2018-05-22 08:29:59 -07:00
|
|
|
sig: Efl.Exe_Signal; [[ Send this signal to the task ]]
|
2018-02-20 22:44:11 -08:00
|
|
|
}
|
|
|
|
}
|
2018-03-06 01:31:48 -08:00
|
|
|
@property exe_flags {
|
2018-02-20 22:44:11 -08:00
|
|
|
set { }
|
|
|
|
get { }
|
|
|
|
values {
|
2018-05-22 08:29:59 -07:00
|
|
|
flags: Efl.Exe_Flags; [[ ]]
|
2018-02-20 22:44:11 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property exit_signal {
|
|
|
|
[[ The final exit signal of this task. ]]
|
|
|
|
get { }
|
|
|
|
values {
|
|
|
|
sig: int; [[ The exit signal, or -1 if no exit signal happened ]]
|
|
|
|
}
|
|
|
|
}
|
2019-02-12 12:34:27 -08:00
|
|
|
@property env {
|
|
|
|
[[ If $env is $null then the process created by this object is
|
|
|
|
going to inherit the enviroment of this process.
|
|
|
|
|
|
|
|
In case $env is not $null then the environment variables declared
|
|
|
|
in this object will represent the environment passed to the new process.
|
|
|
|
]]
|
|
|
|
get {
|
|
|
|
[[ Get the object assosiated with this object ]]
|
|
|
|
}
|
|
|
|
set {
|
|
|
|
[[ Set the object assosiated with this object ]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
env : Efl.Core.Env; [[$env will be referenced until this object does not need it anymore.]]
|
|
|
|
}
|
|
|
|
}
|
2018-02-20 22:44:11 -08:00
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Task.priority { get; set; }
|
|
|
|
Efl.Task.run;
|
|
|
|
Efl.Task.end;
|
|
|
|
Efl.Io.Closer.close;
|
|
|
|
Efl.Io.Closer.closed { get; }
|
|
|
|
Efl.Io.Reader.read;
|
|
|
|
Efl.Io.Reader.can_read { get; set; }
|
|
|
|
Efl.Io.Reader.eos { get; set; }
|
|
|
|
Efl.Io.Writer.write;
|
|
|
|
Efl.Io.Writer.can_write { get; set; }
|
|
|
|
}
|
|
|
|
}
|