~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libmysql/client_settings.h

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
void read_user_name(char *name);
25
25
my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
26
26
 
27
 
/*
28
 
  Let the user specify that we don't want SIGPIPE;  This doesn't however work
29
 
  with threaded applications as we can have multiple read in progress.
30
 
*/
31
27
 
32
 
#if !defined(__WIN__) && defined(SIGPIPE) && !defined(THREAD)
33
 
#define init_sigpipe_variables  sig_return old_signal_handler=(sig_return) 0;
34
 
#define set_sigpipe(mysql)     if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) old_signal_handler=signal(SIGPIPE, my_pipe_sig_handler)
35
 
#define reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
36
 
#else
 
28
/* TODO: Do we still need these now that there's not non-threaded stuff? */
37
29
#define init_sigpipe_variables
38
30
#define set_sigpipe(mysql)
39
31
#define reset_sigpipe(mysql)
40
 
#endif
41
32
 
42
33
void mysql_read_default_options(struct st_mysql_options *options,
43
34
                                const char *filename,const char *group);