ivorynoise commented on a change in pull request #7724: [AIRFLOW-1536] Inherit 
umask from parent process in daemon mode
URL: https://github.com/apache/airflow/pull/7724#discussion_r396118226
 
 

 ##########
 File path: airflow/utils/cli.py
 ##########
 @@ -238,3 +238,12 @@ def sigquit_handler(sig, frame):  # pylint: 
disable=unused-argument
             if line:
                 code.append("  {}".format(line.strip()))
     print("\n".join(code))
+
+
+def get_umask():
+    """
+    Returns umask to control default file permission for new files
+    """
+    cur_mask = os.umask(0)
+    os.umask(cur_mask)
 
 Review comment:
   I have removed this part. Now umask isn't read from the parent. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to