4 ms·write is async signal-safe, but you should save errno before the write and restore it afterward...by scottlamb 3y agowrite is async signal-safe, but you should save errno before the write and restore it afterward...