aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-06-20 19:27:55 +1000
committerDylan Araps <[email protected]>2017-06-20 19:27:55 +1000
commit0840d57d02957b202c93c36eb9e187a60da9ac9f (patch)
tree0b12cc40321ea7dab31c5dc138f4253ea51f3db5
parentWallpaper: Add desktop environment support (diff)
downloadpywal-0840d57d02957b202c93c36eb9e187a60da9ac9f.tar.xz
pywal-0840d57d02957b202c93c36eb9e187a60da9ac9f.zip
Optimization: Terminate the script on exit to save 10ms
-rwxr-xr-xwal4
1 files changed, 3 insertions, 1 deletions
diff --git a/wal b/wal
index a183c9b..5007d13 100755
--- a/wal
+++ b/wal
@@ -568,7 +568,9 @@ def main():
stderr=open("/dev/null", "w"),
preexec_fn=os.setpgrp)
- return 0
+ # This saves 10ms.
+ # pylint: disable=W0212
+ os._exit(0)
main()