Add small delay in spawner

This commit is contained in:
eleksir
2025-04-24 18:38:09 +03:00
parent 95a5033dfc
commit 6b81991ebb

View File

@@ -11,6 +11,7 @@ import (
// Spawner forks and execs given program, and also detaches form its control tty.
func (c *MyConfig) Spawner() {
for prg := range c.Channels.RunChan {
<-time.After(25 * time.Millisecond)
devnullR, _ := os.Open(os.DevNull)
devnullW, _ := os.OpenFile(os.DevNull, os.O_WRONLY|os.O_APPEND, 0644)