// Called to receive a bitmask of queued signals.
func Sigrecv() (m uint32) {
- // runtimeĀ·entersyscall();
+ runtime_entersyscall();
runtime_notesleep(&sig);
- // runtimeĀ·exitsyscall();
+ runtime_exitsyscall();
runtime_noteclear(&sig);
for(;;) {
m = sig.mask;
}
func Siginit() {
+ runtime_initsig(1);
sig.inuse = true; // enable reception of signals; cannot disable
}